package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.DeviceDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceDetailMapper {

    int insertSelective(DeviceDetail record);

    DeviceDetail selectByPrimaryKey(Integer deviceDetailId);

    int updateByPrimaryKeySelective(DeviceDetail record);
    // 删启停设备明细
    int definedDeviceDetail(@Param("deviceDetailIds") Long[] deviceDetailIds,@Param("dataState") Integer dataState);
    // 分页查询
    List<DeviceDetail> listDeviceDetail(DeviceDetail deviceDetail);
    // 计数
    int countDeviceDetail(DeviceDetail deviceDetail);
    // 级联删除
    int deleteDetailByDeviceId(@Param("deviceIds")Long[] deviceIds);
    // 名称判重
    Integer queryDeviceDetailName(DeviceDetail deviceDetail);
    // 查询明细 排除自己
    List<DeviceDetail> queryListByDevice(DeviceDetail deviceDetail);
}